package com.atguigu4.dao;

import com.beans.Order;

import java.sql.Connection;
import java.util.List;

/**
 * @auther user
 * @date 2021/12/10 - 6:25
 */
public interface OrderDao {
    //添加
    int inert(Connection connection, Order order);
    //删除
    int deleteById(Connection connection, int id);
    //更新
    int updateById(Connection connection, Order order);
    //查询
    Order getOrderById(Connection connection, int id);
    //查询 返回list
    List<Order> getAll(Connection connection);
    //查询 count(*)
    Long getCount(Connection connection);
}
